package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.domain.RealAuth;
import cn.wolfcode.p2p.business.domain.CreditTransfer;
import cn.wolfcode.p2p.business.query.CreditTransferQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CreditTransferMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CreditTransfer record);

    CreditTransfer selectByPrimaryKey(Long id);

    List<CreditTransfer> selectAll();

    int updateByPrimaryKey(CreditTransfer record);

        int selectCount(CreditTransferQuery qo);

    List<CreditTransfer> query(CreditTransferQuery qo);

        List<CreditTransfer> selectReadyCreditTransfer(@Param("bidIds") Long[] bidIds, @Param("investId") Long investId);

        int selectMyTransferCount(CreditTransferQuery qo);

    List<CreditTransfer> queryMyTransferList(CreditTransferQuery qo);

        CreditTransfer getByBidIdAndFromLoginInfoIdAndState(@Param("bidId") Long bidId, @Param("toLoginInfoId") Long toLoginInfoId, @Param("bidrequestState") int bidrequestState);
}